﻿Public Class BanDatBUS

    Public Function GetTable() As DataTable
        Dim dao As BanDatDAO = New BanDatDAO()
        Return dao.GetTable()
    End Function

    Public Function Insert(ByVal tmp As BanDatDTO) As Integer
        Dim dao As BanDatDAO = New BanDatDAO()
        Return dao.Insert(tmp)
    End Function

    Public Function Update(ByVal tmp As BanDatDTO) As Integer
        Dim dao As BanDatDAO = New BanDatDAO()
        Return dao.Update(tmp)
    End Function

    Public Function Delete(ByVal tmp As BanDatDTO) As Integer
        Dim dao As BanDatDAO = New BanDatDAO()
        Return dao.Delete(tmp)
    End Function

End Class
